<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\wamp\www\A1-their\tp5\public/../application/index\view\Login\find.html";i:1528112548;}*/ ?>
<!DOCTYPE html>
<html>
	<head lang="en">
		<meta charset="UTF-8">
		<title>找回密码</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />

		<link rel="stylesheet" href="/static/home/AmazeUI-2.4.2/assets/css/amazeui.min.css" />
		<link href="/static/home/css/dlstyle.css" rel="stylesheet" type="text/css">
		<script src="/static/home/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="/static/home/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
		<style>
			.cur{
				/*border:1px solid red;*/
				color:red;
				font-weight:bold;
			}
			.good{
				color:green;
				font-weight:bold;
			}
			.tel{
				border:1px solid red;
				width:100px;
				height:30px;	
			}
			#zhuce{
				width:200px;
			}
			.tishi{
				position: relative;
				left: 210px;
				top: -30px;
				z-index:999px;
				/*width:100px;
				height:50px;
				border:1px solid red;*/
			}
		</style>
	</head>

	<body>

		<div class="login-boxtitle">
			<a href="home/demo.html"><img alt="" src="/static/home/images/aishang.png" /></a>
		</div>

		<div class="res-banner" id="kuang">
			<div class="res-main">
				<div class="login-banner-bg"><span></span><img src="/static/home/images/big.jpg" />
				</div>
				<div class="login-box">
					<div class="am-tabs" id="doc-my-tabs">
						<ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify">
							<li><a href="">找回密码</a></li>
						</ul>

						<div class="am-tab-panel">
							<form method="post" action="/homeregister/doregister" id="form">
								<br><br><br>
								<div class="user-email" id="zhuce">
									<label for="email"><i class="am-icon-envelope-o"></i></label>
									<input type="text" name="email" id="" placeholder="请输入邮箱账号">
									<span id="email" class="tishi"></span>
		                 		</div>

			                	<!-- <div class="user-pass" id="zhuce">
									<label for="password"><i class="am-icon-lock"></i></label>
									<input type="password" name="password" id="password" placeholder="设置密码">
			                		<span id="pwd" class="tishi"></span>									
			                	</div>
			                	<div class="user-pass" id="zhuce">
									<label for="passwordRepeat"><i class="am-icon-lock"></i></label>
									<input type="password" name="repassword" id="passwordRepeat" placeholder="确认密码" id="zhuce">
			                		<span id="repwd" class="tishi"></span>	
			                	</div> -->
			                	<br><br><br>
								<div class="verification" id="zhuce">
									<!-- <label for="code"><i class="am-icon-code-fork"></i></label> -->
									<!-- <input type="code" name="code" id="code" placeholder="请输入验证码"> -->
									<a href="javascript:void(0)" class="btn" id="ss">发送邮件</a>
									<!-- <span id="code" class="tishi"></span> -->
								</div>
								<!-- <div class="am-cf">
									<input type="submit" name="" value="发送邮件" class="am-btn am-btn-primary am-btn-sm am-fl">
								</div> -->
							</form>
							<hr>
						</div>
						<script>
							$(function() {
							    $('#doc-my-tabs').tabs();
							})
						</script>
					</div>
				</div>
			</div>
		</div>
			
					<div class="footer ">
						<div class="footer-hd "> 
      <p> 
      		<span>友情链接</span> 
      		<a href="# ">百度</a> <b>|</b> 
      		<a href="# ">淘宝</a> <b>|</b> 
      		<a href="# ">京东</a> 
      </p> 
     </div> 
     <div class="footer-bd "> 
      <p> <a href="# ">关于爱上零食屋</a>&nbsp&nbsp&nbsp&nbsp&nbsp 
      <a href="# ">合作伙伴</a>&nbsp&nbsp&nbsp&nbsp&nbsp  
      <a href="# ">联系我们</a></p> 
     </div> 
					</div>
	</body>

</html>
<script type="text/javascript">
	//邮箱
	$("input[name='email']").blur(function(){
		//获取手机号码
		email=$(this).val();
		// 正则匹配
		// alert(email);
		if(email.match(/^\w+@\w+(\.\w+)$/)==null){
			$("#email").addClass('cur').html("邮箱格式不符合");
		}else{
			//检测邮箱是否存在
			//ajax
			$.get("/homeregister/checkemail",{email:email},function(data){
				if(data==1){
					//号码已经存在
					// alert(data);
					$("#email").addClass('good').html("邮箱可发送邮件");
				}else{
					EMAIL = false;
					$("#email").addClass('cur').html("邮箱不存在");
				}
			});
		}
	});
	//发送邮件
	$("#ss").click(function(){
		// alert('1');
		o=$(this);
		//获取邮箱
		email=$("input[name='email']").val();
		// alert(email);
		//Ajax
		$.get("/homelogin/sendss",{email:email},function(data){
			// alert(data);
			// 判断
			if(data){
				// alert(data);
				//执行倒计时
				o.html('邮件发送成功,点击前往邮箱<a href="https://mail.qq.com/">修改密码</a>');
			}
		});
	});
	
</script>